package cn.itcast.com.obstract;

import java.util.jar.Manifest;

public class demo {
    public static void main(String[] args) {

        Animal animal = new Dog();
        animal.eat();
    }
}
abstract class Animal{
    String name = "xxxAnimal";

    public abstract void eat();

    public abstract void shout();
}
class Dog extends Animal{

    public void eat() {

    }

    public void shout() {

    }
}